<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2019/3/31 0031
 * Time: 10:05
 */

//list类型出队操作
$redis = new Redis();

$redis->connect('127.0.0.1',6379);

$redis->auth('redis123456');

$value = $redis->lpop('mylist');

if($value){

    echo "出队的值".$value;

}else{

    echo "出队完成";

}